<%@ page language="java"  pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
        #doctor-tb{
            width: 700px;
            margin: 0;
            border: 1px solid black;
            border-collapse: collapse;

        }
        #doctor-tb th,td{
            border: 1px solid black;
            padding: 5px;
            text-align: center;
            width: 5px;
            font-size: small;
        }

    </style>
</head>
<body>
<table id="doctor-tb">

    <caption></caption>
    <tr>
        <th>序号</th>
        <th>医生姓名</th>
        <th>电话</th>
        <th>邮箱</th>
        <th>性别</th>
        <th>年龄</th>
        <th>状态</th>
    </tr>

    <c:forEach items="${doctors}" var="doctor" varStatus="status">
        <form action="#"   method="post">

            <tr>
                <td><input type="checkbox">${status.index + 1}</td>
                <td>${doctor.doctorName}</td>
                <td>${doctor.phone}</td>
                <td>${doctor.email}</td>
                <td>${doctor.gender ? '男' :  '女'}</td>
                <td>${doctor.age}</td>
                <td>${doctor.state ? '启用' :  '停用'}</td>
<%--                <td>--%>
<%--                    <c:if test="${doctor.state == 1}" >--%>
<%--                        启用--%>
<%--                    </c:if>--%>
<%--                    <c:if test="${doctor.state != 1}" >--%>
<%--                        停用--%>
<%--                    </c:if>--%>
<%--                </td>--%>
            </tr>
    </c:forEach>
        </form>


</table>


</body>
</html>